from applications.extensions import ma
from marshmallow import fields


class ArticleSchema(ma.Schema):
    id = fields.Integer()
    title = fields.Str()
    content = fields.Str()
    top = fields.Integer()
    is_del = fields.Integer()
    create_at = fields.DateTime()
    update_at = fields.DateTime()
